/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * ImageManagerToImagePatternDialog.java
 *
 * Created on Mar 15, 2009, 7:48:02 PM
 */

package test;

import java.awt.Dimension;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JSpinner;
import javax.swing.JTextField;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;
import javax.swing.WindowConstants;
import org.netbeans.lib.awtextra.AbsoluteConstraints;
import org.netbeans.lib.awtextra.AbsoluteLayout;

/**
 *
 * @author Naruto
 */
public class ImageManagerToImagePatternDialogSample extends javax.swing.JFrame {

    /** Creates new form ImageManagerToImagePatternDialog */
    public ImageManagerToImagePatternDialogSample() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabelSlice = new JLabel();
        jLabelName = new JLabel();
        jLabelColumns = new JLabel();
        jLabelRows = new JLabel();
        jTextFieldName = new JTextField();
        jSpinnerColumns = new JSpinner();
        jSpinnerRows = new JSpinner();
        OK = new JButton();
        Cancel = new JButton();
        jLabelBackground = new JLabel();

        setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
        setMinimumSize(new Dimension(430, 240));
        getContentPane().setLayout(new AbsoluteLayout());

        jLabelSlice.setText("Slice Image to Image Pattern");
        getContentPane().add(jLabelSlice, new AbsoluteConstraints(20, 20, -1, -1));

        jLabelName.setText("Name of Image Pattern:");
        getContentPane().add(jLabelName, new AbsoluteConstraints(20, 60, -1, -1));

        jLabelColumns.setText("Number of Columns:");
        getContentPane().add(jLabelColumns, new AbsoluteConstraints(20, 90, -1, -1));

        jLabelRows.setText("Number of Rows:");
        getContentPane().add(jLabelRows, new AbsoluteConstraints(20, 120, -1, -1));
        getContentPane().add(jTextFieldName, new AbsoluteConstraints(160, 60, 230, -1));
        getContentPane().add(jSpinnerColumns, new AbsoluteConstraints(160, 90, 70, -1));
        getContentPane().add(jSpinnerRows, new AbsoluteConstraints(160, 120, 70, -1));

        OK.setText("OK");
        getContentPane().add(OK, new AbsoluteConstraints(240, 160, 70, -1));

        Cancel.setText("Cancel");
        getContentPane().add(Cancel, new AbsoluteConstraints(320, 160, 70, -1));

        jLabelBackground.setIcon(new ImageIcon(getClass().getResource("/com/images/ProjectDialogBackground.png"))); // NOI18N
        getContentPane().add(jLabelBackground, new AbsoluteConstraints(0, 0, 410, 240));

        pack();
    }// </editor-fold>//GEN-END:initComponents

    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
         try {
			UIManager.setLookAndFeel("com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel");
		} catch (ClassNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (InstantiationException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IllegalAccessException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (UnsupportedLookAndFeelException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new ImageManagerToImagePatternDialogSample().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private JButton Cancel;
    private JButton OK;
    private JLabel jLabelBackground;
    private JLabel jLabelColumns;
    private JLabel jLabelName;
    private JLabel jLabelRows;
    private JLabel jLabelSlice;
    private JSpinner jSpinnerColumns;
    private JSpinner jSpinnerRows;
    private JTextField jTextFieldName;
    // End of variables declaration//GEN-END:variables

}
